package com.jiyun.controller;


import com.jiyun.model.information.DoctorRole;
import com.jiyun.result.Result;
import com.jiyun.service.IDoctorRoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 
 * @since 2024-09-23
 */
@RestController
@RequestMapping("/role/")
@Api("医生角色")
public class DoctorRoleController {

    @Autowired
    private IDoctorRoleService doctorRoleService;

    @ApiModelProperty("查询全部")
    @RequestMapping("findRole")
    public Result findRole(){
        List<DoctorRole> list = doctorRoleService.list();
//        System.err.println(list);
        return Result.ok(list);
    }

}
